def outbound_1():
  """E1. Outbound call DN1 to Ext1Dn, release DN1"""
  DN1.MakeCall(Ext1DN2)
  Ext1DN2.AnswerCall()
  DN1.ReleaseCall()

def outbound_2():
  """E2. Outbound call DN1 to Ext1Dn, abnormal release DN1"""
  DN1.MakeCall(Ext1DN2)
  DN1.ReleaseCall()

def outbound_3():
  """E3. Outbound call DN1 to Ext1Dn, release Ext1Dn"""
  DN1.MakeCall(Ext1DN2)
  Ext1DN2.AnswerCall()
  Ext1DN2.ReleaseCall()

def outbound_4():
  """E6. DN1 internal call to DN3, DN3 two step transfer to Ext1DN, release DN1"""
  DN1.MakeCall(DN3)
  DN3.AnswerCall()
  DN3.InitiateTransfer(Ext1DN2)
  Ext1DN2.AnswerCall()
  DN3.CompleteTransfer()
  DN1.ReleaseCall()

def outbound_5():
  """E7. DN1 internal call to DN3, DN3 tinit to Ext1DN,  abn rel Ext1DN, rel DN1"""
  DN1.MakeCall(DN3)
  DN3.AnswerCall()
  DN3.InitiateTransfer(Ext1DN2)
  DN3.ReleaseCall()
  DN1.ReleaseCall()

def outbound_6():
  """E8. DN1 internal call to DN3, DN3 tinit to Ext1DN, rel DN1, Ext1DN ans, Ext1DN rel"""
  DN1.MakeCall(DN3)
  DN3.AnswerCall()
  DN3.InitiateTransfer(Ext1DN2)
  DN1.ReleaseCall()
  Ext1DN2.AnswerCall()
  DN3.ReleaseCall()

def outbound_7():
  """E11. DN1 internal call to DN3, DN3  blind trans to Ext1DN, rel DN1"""
  DN1.MakeCall(DN3)
  DN3.AnswerCall()
  DN3.InitiateTransfer(Ext1DN2)
  DN3.CompleteTransfer()
  DN3.AnswerCall()    #call will return to the transferred party
  DN1.ReleaseCall()

def outbound_8():
  """E12. DN1 internal call to DN3, DN3  blind trans to Ext1DN, abn, rel DN1"""
  DN1.MakeCall(DN3)
  DN3.AnswerCall()
  DN3.InitiateTransfer(Ext1DN2)
  DN3.CompleteTransfer()
  DN1.ReleaseCall()

def outbound_9():
  """E20. DN1 internal call to DN3, DN3 conference to Ext1DN, release DN1,DN3"""
  DN1.MakeCall(DN3)
  DN3.AnswerCall()
  DN3.InitiateConference(Ext1DN2)
  Ext1DN2.AnswerCall()
  DN3.CompleteConference()
  DN1.ReleaseCall()
  DN3.ReleaseCall()

def outbound_10():
  """E21. DN1 internal call to DN3, DN3 cinit conf to Ext1DN, abn release DN3, release DN1"""
  DN1.MakeCall(DN3)
  DN3.AnswerCall()
  DN3.InitiateConference(Ext1DN2)
  DN3.ReleaseCall()
  DN1.ReleaseCall()

